package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the SMPREGPR database table.
 * 
 */
@Entity
@Table(name="SMPREGPR")
public class Smpregpr implements Serializable {
	private static final long serialVersionUID = 1L;
	private long expuid;
	private Date addedon;
	private Date birthdate;
	private String firstname;
	private String lastname;
	private String middlename;
	private String salutation;
	private Date updatedon;

    public Smpregpr() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(unique=true, nullable=false)
	public long getExpuid() {
		return this.expuid;
	}

	public void setExpuid(long expuid) {
		this.expuid = expuid;
	}


    @Temporal( TemporalType.DATE)
	public Date getAddedon() {
		return this.addedon;
	}

	public void setAddedon(Date addedon) {
		this.addedon = addedon;
	}


    @Temporal( TemporalType.DATE)
	public Date getBirthdate() {
		return this.birthdate;
	}

	public void setBirthdate(Date birthdate) {
		this.birthdate = birthdate;
	}


	@Column(nullable=false, length=25)
	public String getFirstname() {
		return this.firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}


	@Column(nullable=false, length=25)
	public String getLastname() {
		return this.lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}


	@Column(length=25)
	public String getMiddlename() {
		return this.middlename;
	}

	public void setMiddlename(String middlename) {
		this.middlename = middlename;
	}


	@Column(length=6)
	public String getSalutation() {
		return this.salutation;
	}

	public void setSalutation(String salutation) {
		this.salutation = salutation;
	}


    @Temporal( TemporalType.DATE)
	public Date getUpdatedon() {
		return this.updatedon;
	}

	public void setUpdatedon(Date updatedon) {
		this.updatedon = updatedon;
	}

}